#ifndef __GAMEPLAY_H__
#define __GAMEPLAY_H__

#include "Sprite.h"
#include "DxGraphics.h"
#include "DxInput.h"
#include "GameState.h"
//Nhan Vat chinh
#include "CMap.h"
//Menu game

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <conio.h>

//Class
class CGamePlay: public CGameState
{
private:
	static CGamePlay * _instance;
	bool	_isPause;//bien tam dung
	//Menu game
	bool _gameLoad;

protected:
	CGamePlay(HWND hwnd);
public:
	static CGamePlay* SetInstance(HWND hwnd);
	~CGamePlay();
	HWND _hwnd;
	RECT _source;
	CMap* _mapManage;

	void Game_Load(bool);
	bool Game_Init();
	void Game_Run(HWND,DWORD);
	void Game_Update(DWORD);
	void Game_Reset();
	void Game_End();
	void Run();

};
#endif